package com.zbkj.crmeb.chant.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Update;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("eb_channel_discount_package")
@ApiModel("ChannelDiscountPackage对象")
public class ChannelDiscountPackage implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("活动名称")
    private String activityName;

    @ApiModelProperty("活动类型1：固定套餐 2：搭配套餐")
    private Integer activityType;

    @ApiModelProperty("活动开始时间")
    private Date activityStartTime;

    @ApiModelProperty("活动结束时间")
    private Date activityEndTime;

    @ApiModelProperty("套餐价格")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal activityTotalPrice;

    @ApiModelProperty("商品件数")
    private Integer productCount;

    @ApiModelProperty("套餐销量")
    private Integer salesVolume;

    @ApiModelProperty("销售金额")
    private BigDecimal salesMoney;

    @ApiModelProperty("套餐主图")
    private String mainUrl;

    @ApiModelProperty("商户id")
    private Integer merId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
